package org.phantom.securityframework.api;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceListener;
import org.phantom.securityframework.api.RealmRegister;
import org.phantom.securityframework.api.factory.RealmRegisterImpl;

/**
 * Activator
 * @author apple
 *
 */
public class Activator implements BundleActivator{

	@Override
	public void start(BundleContext context) throws Exception {
		RealmRegister register = new RealmRegisterImpl();
		context.addServiceListener((ServiceListener) register);
		context.registerService(RealmRegister.class,register,null);
		
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		
	}
}
